//
//  TwoViewController.m
//  AppTwo
//
//  Created by mac on 2019/2/25.
//  Copyright © 2019 YangYang. All rights reserved.
//

#import "TwoViewController.h"
#import "AppDelegate.h"

@interface TwoViewController ()

@end

@implementation TwoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    NSString *urlString = [NSString stringWithFormat:@"url = %@\nhost = %@",[_url absoluteString],[_url host]];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 180)];
    [self.view addSubview:label];
    label.text = @"第二个APP中的指定界面";
    label.text = [NSString stringWithFormat:@"第二个APP中的指定界面\n\n%@",urlString];
    label.font = [UIFont systemFontOfSize:20];
    label.textColor = [UIColor lightGrayColor];
    label.textAlignment = NSTextAlignmentCenter;
    label.numberOfLines = 0;
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
